###
# 列表推导更易阅读
# 但不要超过一行
# 目的是产生列表
###
symbols = 'abcde'


def notComprehension():
    codes = []
    for symbol in symbols:
        codes.append(ord(symbol))
    return codes


def comprehension():
    return [ord(symbol) for symbol in symbols]


if __name__ == '__main__':
    print(notComprehension())
    print(comprehension())
